package com.gaofeng.day14;

import java.util.Scanner;

public class demo04 {
    public static void main(String[] args) {
        //
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();

        StringBuilder sd = new StringBuilder();

        String result = sd.append(str).reverse().toString();

        if(str.equals(result)){
            System.out.println("当前字符串是对称数字");
        }else{
            System.out.println("当前字符串不是对称数字");
        }
    }
}
